import DImage from "./DImage.vue";
import DImageOption from "./DImageOption.vue";
import DImageView from "./DImageView.vue";
import image_base64 from "@/views/drag_edit/image_base64.ts";

function registerBaseComponent(compMap: any) {
    compMap["image"] = {
        label: "图片", component: DImage, option: DImageOption, view: DImageView,
        placeHolderOption: {
            url: image_base64["placeholder.png"]
        },
        initSize: {w: 50, h: 50,}//被拖入时的初始化尺寸
    }
}

export {registerBaseComponent}
